package com.pets.dao;

import com.pets.entity.Apply;
import com.pets.vo.UserApplyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplyMapper {
    int deleteByPrimaryKey(Integer appid);

    int insert(Apply record);

    int insertSelective(Apply record);

    Apply selectByPrimaryKey(Integer appid);

    int updateByPrimaryKeySelective(Apply record);

    int updateByPrimaryKey(Apply record);

    List<UserApplyVO> getUserApplyList(@Param("uId") int uId);

    /**
     * 查询所有申请中状态的申请单
     * @return
     */
    List<Apply> getAllApply();

    /**
     * 获取用户正在申请中的记录
     * @param uId
     * @return
     */
    UserApplyVO getUserApplyingByuId(int uId);
}